<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdQuotationItemsBean.id}"/>
		<f:event type="preRenderView" listener="#{sdQuotationItemsBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Quotation Items"/>

	<ui:define name="header">
		Sd Quotation Items
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdQuotationItemsBean.id}">
				Edit existing Sd Quotation Items
			</c:when>
			<c:otherwise>
				Create a new Sd Quotation Items
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsSdQuotation" value="Sd Quotation:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdQuotationBean.converter}" id="sdQuotationItemsBeanSdQuotationItemsSdQuotation" value="#{sdQuotationItemsBean.sdQuotationItems.sdQuotation}">
						<f:selectItem/>
						<f:selectItems value="#{sdQuotationBean.all}"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsSdQuotation" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtItemNo" value="Qt Item No:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtItemNo" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtItemNo}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtItemNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtItemDescr" value="Qt Item Descr:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtItemDescr" maxLength="100" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtItemDescr}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtItemDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtQty" value="Qt Qty:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtQty" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtQty}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtQty" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtPpu" value="Qt Ppu:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtPpu" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtPpu}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtPpu" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtTotalPriceExcVat" value="Qt Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtTotalPriceExcVat" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtTotalPriceExcVat}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtStatusIncVat" value="Qt Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtStatusIncVat" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtStatusIncVat}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtVatPercVal" value="Qt Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtVatPercVal" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtVatPercVal}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtVat" value="Qt Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtVat" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtVat}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemsBeanSdQuotationItemsQtTotalPrice" value="Qt Price:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemsBeanSdQuotationItemsQtTotalPrice" required="true" value="#{sdQuotationItemsBean.sdQuotationItems.qtTotalPrice}"/>
					<h:message for="sdQuotationItemsBeanSdQuotationItemsQtTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdQuotationItemsBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdQuotationItemsBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdQuotationItemsBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdQuotationItemsBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>